<%
	/*	LogoInclude.jsp
   *	Modified on : 10.04.2004
	*	Changed the following..
	*	Under the Help Menu, Application ? to Help ? and About 2.0 ? to just About
	*	Added Search button & textbox
	*/
%>
<% String syrrxstaticurl=(String)config.getServletContext().getAttribute("StaticURL");%>



<SCRIPT src="<%=(String)config.getServletContext().getAttribute("StaticURL")%>/js/tmenu.js"></SCRIPT>
<script src="<%=syrrxstaticurl%>/js/aw.js" type="text/javascript"></script>
<link href="<%=syrrxstaticurl%>/css/aw.css" rel="stylesheet">
<!--

//-->
</script>
	<!-- main table starts here -->
<a name="topPage"></a>
	<table align="center" valign="top" border="0" cellpadding="5" cellspacing="0" width="100%" id="parentTable">
	
		<!-- Logo and Menu starts here-->
		<tr id="menuTr">
			<td valign="center" width="100%" colspan="2">
				<table align="center" bgcolor="#000000" border="0" cellpadding="1" cellspacing="0" width="100%">
      				<tr width=100%>
						<td valign="center">            
							<table bgcolor="#ffffff" border="0" cellpadding="5" cellspacing="0" width="100%">
								<tr>
									<td width="100"><a href="" title="TSD Intranet" TARGET="_top"><img 		src="<%=(String)config.getServletContext().getAttribute("StaticURL")%>/imgs/logo.png" border="0"></a>
									</td>
									
								</tr>
							</table>            
							<table bgcolor="#ffffff" border="0" cellpadding="2" cellspacing="0" width="100%">
								<tr>
									<td bgcolor="#efefef" width="45%" align="left">

									<SCRIPT type=text/javascript>
										TMENU_IMAGES_PATH = "http://192.168.10.235/SyrrxStatic/imgs/";
										bar = new MenuBar();
										
										targ = new Menu("Search");
                  						targ.add(new MenuItem("Groups","AdvancedSearchForm.do?headername=Group&action=queryForm&about=Group%20Query%20Results&queryReturnTable=V_GROUP_SUMMARY"));
                  						targ.add(new MenuItem("Users","AdvancedSearchForm.do?headername=User&action=queryForm&about=User%20Query%20Results&queryReturnTable=V_USER_SUMMARY" ));
                  						targ.add(new MenuItem("Targets","AdvancedSearchForm.do?headername=Target&action=queryForm&about=Target%20Query%20Results&queryReturnTable=V_TPC_TARGET_SUMMARY"));
                  						
                  						reg = new Menu("Associate");
										reg.add(new MenuItem("User to Group","UserMainAction.do?actionType=assignUser"));
										reg.add(new MenuItem("Group to Targets","GroupMainAction.do?actionType=GroupToTargets"));
										reg.add(new MenuItem("Users to Targets","UserMainAction.do?actionType=UserToTargets"));
						               
										srch = new Menu("Register");
										srch.add(new MenuItem("Group","GroupMainAction.do?actionType=showaddgroup"));
										//srch.add(new MenuItem("User",""));

										hlp = new Menu("Help");
										hlp.add(new MenuItem("Help","help.jsp"));
										hlp.addSeparator();
										hlp.add(new MenuItem("About","/pbreg/aboutPB.jsp"));

										user = new Menu("weblogic","Logout", "PBLogout.jsp");

										bar.add(targ);
										bar.add(reg);
										bar.add(srch);
										
										
										bar.add(hlp);
										bar.add(user);
										document.write(bar);
									</SCRIPT>
									
									</td>
									
									
									<FORM NAME="search" ACTION="InfoMainSearchAction.do" onSubmit="return doSearchSubmit()" METHOD="get">
									<script language="javascript">
											String.prototype.trim = function() {
												var x=this;
												x=x.replace(/^\s*(.*)/, "$1");
												x=x.replace(/(.*?)\s*$/, "$1");
											    return x;
											}
								  </script>
									<SCRIPT type=text/javascript>																												
										function doSearchSubmit() {
											if (document.search.id.value.length < 1) {
												alert("Please enter a search string.");												
											    return false;
											} else {
											 var idval=document.search.id.value;
											 document.search.id.value=idval.trim();
											 document.search.submit();
											}
										return true;	
										}
									</SCRIPT>
									
										<INPUT TYPE="hidden" NAME="about" VALUE="Query results for">
										<INPUT TYPE="hidden" NAME="action" VALUE="search">
										<INPUT TYPE="hidden" NAME="quicksearch" VALUE="quicksearch">
									<TD bgcolor="#efefef" valign="middle"  align="left" width="30%">
									</TD>
									
									<TD bgcolor="#efefef" valign="middle" value="" align="right" class="text" WIDTH="15%">
									    Quick Search 
									</TD>

									<TD bgcolor="#efefef" valign="middle" value="" align="left" class="frm" WIDTH="12%">
											<INPUT TYPE="text" SIZE="15" NAME="id">
									</TD>

									<TD bgcolor="#efefef" valign="middle" align="right" WIDTH="1%">
										<input type="button" name="searchbut" onClick="return doSearchSubmit()"  value="Go" class="frm">									

									</TD>
									</FORM>
									
								</tr>
							</table>
							</td>
						</tr>
					</table>
				 </td>
			</tr>
<!-- Logo and Menu Ends here-->